package com.openspring.platform.model;

import com.openspring.framework.annotation.persistence.GeneratedValue;
import com.openspring.framework.annotation.persistence.Id;
import com.openspring.framework.annotation.persistence.Table;

/**
 * 资源实体类
 * @author hebin
 *
 */
@Table(name="t_platform_resource", schema="emp")
public class Resource {
	
	private Long id;
	private Long parentId;
	private String name;
	private String text;
	private String target;
	private String iconCls;
	private boolean expanded;
	private String status;
	private long sort;
	
	@Id
	@GeneratedValue
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getParentId() {
		return parentId;
	}
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String getTarget() {
		return target;
	}
	public void setTarget(String target) {
		this.target = target;
	}
	public String getIconCls() {
		return iconCls;
	}
	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}
	public boolean isExpanded() {
		return expanded;
	}
	public void setExpanded(boolean expanded) {
		this.expanded = expanded;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public long getSort() {
		return sort;
	}
	public void setSort(long sort) {
		this.sort = sort;
	}
}
